package com.botarena.server.services.validation;

import com.botarena.server.model.Bot;

public class BotValidator implements Validator<Bot> {
	
	@Override
	public boolean isValid(Bot entity) {
		
		if (entity.getName().equals(""))
			return false;
		
		if (entity.getSourceCode().equals(""))
			return false;
		
		return true;
	}
}
